You could upgrade or downgrade all strings before comparing them. Note that downgrading isn't going to work if they contain characters with code points exceeding 256 - but then such strings don't have LATIN-1 equivalents anyway.
See utf8; (But if you go this way, don't put a use utf8; in your code).