fix string encode problem. #4