Use Uint8Array.toBase64 for the shared byte encoder on supporting engines, retaining the existing chunked implementation when the API is absent. Cover standard padding and byte views on both paths and document the encoding contract.