unescapeString broke unicode URLs

createStateObject object passes the URL string to unescapeString. 
If the URL is http://myhost/リオれ then it becomes http://myhost/ãªãªã

fixed with this tiny change.