Getting rid of Zlib::GzipFile::Error: "not in gzip format"