corrected gzip content-encoding handling