Support Unicode characters

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