Fix for #1, bad detection of gzip compression