Transcode to UTF-8 before passing to duk