Fix response encoding