Added support for gzip encoding.