fixed the encoding issue