fix the encoding problem