Base64

Encode and decode Base64 locally.

UTF-8 text is converted through TextEncoder and Uint8Array.toBase64 feature detection with a chunked fallback.