ResolveClientUrl when page path ends with backslash
<p>I noticed that Page.ResolveClientUrl resolves to an incorrect path when URL of the Page it is used on ends with a backslash. For example:</p>

<pre><code>http://localhost/Default.aspx
-&gt; Page.ResolveClientUrl("~/Styles/style.css") returns "Styles/style.css" (correct)

http://localhost/Default.aspx\
-&gt; Page.ResolveClientUrl("~/Styles/style.css") returns "../Styles/style.css" (incorrect)
</code></pre>

<p>Why does this happen, and how can I prevent an incorrect path from being returned?</p>
