Use `encodeURIComponent` instead of `escape`.

Fixed #15 for me (`Uncaught URIError: URI malformed`)

`escape` is bad practice. See http://stackoverflow.com/a/3608791/1207223