Convert a string to base64

https://developer.mozilla.org/en-US/docs/Web/API/btoa