Standard Base64 vs. Base64URL (And Why btoa() Breaks Unicode)
Legacy browser helpers like window.btoa() throw an InvalidCharacterError whenever input text contains characters outside Latin-1 (such as smart quotes, math symbols, or international names). Taprico encodes text into UTF-8 byte arrays first before converting to Base64.
Standard Base64 includes +, /, and = padding characters that carry special meaning in URLs. Base64URL swaps + for -, / for _, and optionally omits trailing = padding—making it safe inside query strings, filenames, and JWT headers.