Support for non UTF-8 systems