Partial implementation of JavaScript unescape