fixed the encoding