title: A url resource that is a dot (%2E)
body: <p>I have a resource that is a <code>.</code>
  This means my url looks like this:
  <code><a href="http://myapp/index/" rel="noreferrer">http://myapp/index/</a>.</code>
  And i need to add query parameters so that it looks like this:
  <code><a href="http://myapp/index/.?type=xml" rel="noreferrer">http://myapp/index/.?type=xml</a></code>
  I use <a href="http://freemarker.org/" rel="noreferrer">Freemarker</a> for the presentation of my resources and made a percent-encoding hack for this case:</p>
  
  <pre><code>&lt;#if key?matches("\\.")&gt;
  &lt;li&gt;&lt;a href="${contextPath}/index/%2E"&gt;${key}&lt;/a&gt;&lt;/li&gt;
  &lt;/#if&gt;
  </code></pre>
  
  <p>This works fine for Firefox. But all other Browsers like IE, Safari, Chrom, Opera just ignore my url encoded dot (<code><a href="http://myapp/index/%2E" rel="noreferrer">http://myapp/index/%2E</a></code>).</p>
  
  <p>Any suggestions?</p>