Fixed the garbage characters due to different encode style.