As far as I can tell the compress/flate package also works for encoding data in the same format.
compress/flate