Add support for character encodings