Fix encoding issue after a gzip decompress