Fixed bad encoding of responses sent by the http server