Multibase encode/decode. Decoding is panic-free on arbitrary input, including strings whose first character is multi-byte.