Encode/decode typed arrays (e.g. Float32Array, Uint8Array) to and from base64 strings.