Fixes unicode support: use base64 lib instead of atob()