Support for UTF-8 documents