Encode and decode Base64, including URL-safe Base64.
Yes. Text is encoded as UTF-8 before conversion, so Japanese, emoji and accented characters round-trip correctly.
The same encoding with + and / replaced by - and _, and padding removed, so the result can go into a URL or filename. Decoding accepts both forms.