fixed gzip encoding