GzipCodec relies on StringIO