Base64 class from upstream

- [ ] @joemukai