That sound like is the user’s fault: if their name is “Bill of Boston”, then their surname is “of Boston”… and if they prefer to be called “Mr. Boston” or similar, then they should omit the “the” when filling a form
If someone's family name is O'Neill and their name gets sorted to the top of the O section because if the apostrophe does that make it their fault? If they prefer to be sorted correctly they should omit the apostrophe from their name?