fix the encoding issue