fixed utf8 compatibility