utf-8 encode bug fix