JQuery-Routes not routing with escape characters with the url
<p>I'm trying to pass form data through url encoding with jquery-routes.</p>

<p>It works as long as there's no space.</p>

<p>so #/search/asdf works but #/search/asdf%20asdf doesn't reach the search route.</p>

<p>Is there another way to do it besides just replacing spaces with underscores?</p>

<p>Thanks</p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;script src="/Scripts/jquery-1.7.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="/js/jquery.address.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="/js/jquery.routes.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script&gt;
        $.routes({
            '/': function () {
                $('#content').html('Select an item.');
            },
            '/search/:terms': function (params) {
                $('#content').html(unescape(params.terms));
            }
        });

        function Search() {
            location.hash = "/search/"+ escape(document.getElementById("terms").value);
        };
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form&gt;
    &lt;input type="text" id="terms" /&gt;
    &lt;button type="button" onclick="Search();"&gt;go&lt;/button&gt;
&lt;/form&gt;

&lt;div id="content"&gt;&lt;/div&gt;
</code></pre>

<p>
</p>
