setting the encoding to binary