title: Allow dot in php preg_replace
body: <p>I'm using <a href="http://cubiq.org/the-perfect-php-clean-url-generator" rel="nofollow">The perfect PHP clean url generator</a> to clean some file names with an upload script (as well as to clean my permalinks elsewhere).  How might I modify it to allow a <code>.</code> if the function looks like this:</p>
  
  <pre><code>setlocale(LC_ALL, 'en_US.UTF8');
  function toAscii($str, $replace=array(), $delimiter='-', $exception = '') {
      if( !empty($replace) ) {
          $str = str_replace((array)$replace, ' ', $str);
      }
  
      $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
      $clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
      $clean = strtolower(trim($clean, '-'));
      $clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);
  
      return $clean;
  }
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong> Modified the function slightly to reflect my actual usage - sorry about that.</p>