Fixed bug with chinese characters