Be a little more sensible with gzinflate
Add advanced gzip decoding thanks to @dd32

This is based on source code from WordPress.com by @dd32 based on their
usage patterns.