simplified gzip header removal