Pass gzip html error without unzipping

Improved the fix for issue #44 to mimic java #81 and not unzip and zip again, but instead send content-encoding header