fix utf8 encoding bug