Fix gzip encoding bug where files were transferred ungzipped but with a gzip header.