Setting the encoding of the http response to binary