Support UTF-8 characters, e.g. Chinese using a hack
https://developer.mozilla.org/en-US/docs/DOM/window.btoa#Unicode_Strings