replace use of deprecated escape/unescape
- use encodeURIComponent/decodeURIComponent