Portable zlib call + encoding issue.