Encode text to base64, as per RFC-4648. The result is a base64 encoded UTF-8 string.
and also base16, base32 and base32hex encoding.