Use escodegen to escape strings instead of btoa/atob