Replace Deprecated Encoding Functions

Replaced [deprecated](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape) `escape` and `unescape` functions with newer `encodeURIComponent` and `decodeURIComponent`. Didn't update the package information in `package.json` and ran it through a pretty rudimentary minimizer so you might want to go ahead and update those as well if you incorporate these changes.

Cheers!
Alex