Compress / uncompress with gzip + fix replay