Adding support for UTF-8 character encoding.