Add proper support for "gzip" and "deflate" encodings