Use browser functions to encode/decode utf8 (#50)