Convert text ⇄ Base64 with UTF-8 support.
Handles UTF-8 characters correctly when encoding and decoding.