setting the encoding