Support for non-Latin encodings