Improve handling of gzip encoded responses