Sanitizing string to url safe format
<p>I am trying to sanitize a string so that it can be used to be put in an URL. This is just for show in the URL. Now I was using this function in PHP which worked fine:</p>

<pre><code>$CleanString = IconV('UTF-8', 'ASCII//TRANSLIT//IGNORE', $String);
$CleanString = Preg_Replace("/[^a-zA-Z0-9\/_|+ -]/", '', $CleanString);
$CleanString = StrToLower( Trim($CleanString, '-') );
$CleanString = Preg_Replace("/[\/_|+ -]+/", $Delimiter, $CleanString);
</code></pre>

<p>Now I am trying to put this in C#, the regex's are no problem but the first line is a bit tricky. What is the safe way to replace characters as é á ó with their normal equivalents a e o?</p>

<p>For example, above would transer:</p>

<pre><code>The cát ís running &amp; getting away
</code></pre>

<p>to</p>

<pre><code>the-cat-is-running-getting-away
</code></pre>
