fixed issue with response encoding of content