title: Converting string into web safe URI
body: <p>I have strings with special characters I want to convert. Usually I find all the special characters and their "web safe" counter parts manually and put them in arrays. Then I use preg_replace to replace each of the characters.</p>
  
  <p>But I cannot help but thinking that there is an easier solution since it is error prune approach.</p>
  
  <p>Here is an example of what I want:</p>
  
  <pre><code>Hans Günther -&gt; hans-gunther
  Jären höst   -&gt; jaeren-hoest
  René Ågesen  -&gt; rene-aagesen
  </code></pre>