fixed utf8 conversion bug