fix bug about conversion between utf8 to utf16