Add setEncoding() support to zlib streams