Use UTF-8 case-insensitive hashes and comparisons for language identifiers.