Compress serialized string with ZLIB