add char- class for any character, but encode non-latin characters