fixed the UTF-8 bug