Ensure that a list of URLs without a page part always ends with slash and dot
<p>I have a really big list of URLs and I'd like to add a slash and dot (<code>/.</code>) to all URLs that don't have a page part. Here are some examples of what I'd like to achieve:</p>

<ul>
<li><code>http://www.example.com</code> should be <code>http://www.example.com/.</code></li>
<li><code>http://www.example.com/index.htm</code> is okay </li>
<li><code>http://www.example.com/.</code> is okay </li>
<li><code>http://www.example.com/#</code> should be <code>http://www.example.com/.</code></li>
<li><code>http://www.example.com/something</code> should be <code>http://www.example.com/something/.</code></li>
</ul>

<p>One exception is that hashes (<code>#</code>) should be replaced with a dot too.</p>

<p>I could use regexs to do this because that's the only thing I that seems to pop into my head but since this is very big list 10000+ URLs, I'm looking for the fastest possible method.</p>

<p>Thanks</p>
