public static String deflate(final byte[] bytes) {
        val data = new String(bytes, StandardCharsets.UTF_8);
        return deflate(data);
    }
Deflate the given bytes using zlib.

@param bytes the bytes
@return the converted string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java