fixed bug in UTF-8