let's not do this. Instead leave data alone (base64 encoded utf-8 string), and decode on the client via:

https://developer.mozilla.org/en-US/docs/Web/API/window.btoa

```
function b64_to_utf8( str ) {
    return decodeURIComponent(escape(window.atob( str )));
}
```