if ('B' == encode || 'b' == encode) { // BASE64
array = Pack.unpack(context.runtime, body, PACK_BASE64);
} else { // Qencode
array = Pack.unpack(context.runtime, body, PACK_QENCODE);
}
RubyString s = (RubyString) array.entry(0);
ByteList decodeStr = s.asString().getByteList();
return convert_byte(decodeStr, charset, options.get("output"));
}