Correct fix for https://github.com/browserstate/history.js/pull/251

unescapeString breaks unicode URLs

https://github.com/amitxlnc/history.js/compare/i18n

window.unescape/escape can not handle unicode chars, so you can use encodeURIComponent and decodeURIComponent