Use StdEncoding for base64.
Add tests.