decode (chars, array_length (chars), string, STR_BASE64);

decode (chars, array_length (chars), string, charset, STR_CHARSET);

decode (&str, array_length (str.chars), string, STR_HEX_SPACES);

decode (&str, array_length (str.chars), string, charset, STR_CHARSET | STR_SLICE);