Encode javascript source as UTF-8