The check must be done after UTF-8 conversion.
The check must be done after UTF-8 conversion.