Fix for issue #6

Call encodeURIComponent on any string to be used in a route URL.