support for handling non UTF-8 chars
support for handling non UTF-8 chars