Exact Base64 for the agent: encode, decode and validate text with the standard or URL-safe alphabet, including data URIs. Runs locally, no network access.