ofzip: Add support for specifying the encoding