Comment by brainwad

8 hours ago

You assume the worst case: every character that could ever have been entered is in use.

Yes, it really is that simple. They chose that responsibility the moment they allowed those characters. Any deductions done after that need to have a failsafe with the expectation they will break a clueless user's device.