Replacing btoa with Base64.encode

The btoa function is failing jshint validation. Discussed with Joe and
we’re replacing with Base64.encode which has previously been used in
published Labs apps.