Convert to ascii before calling spidermonkey