--- formatting.php      2009-09-16 11:25:13.000000000 -0700
+++ formatting-patch.php        2009-09-16 11:25:36.000000000 -0700
@@ -680,6 +680,8 @@
  */
 function sanitize_title_with_dashes($title) {
        $title = strip_tags($title);
+       // strip curly quotes and em/en dashes
+       $title = preg_replace('/\xe2\x80\x93|\xe2\x80\x94|\xe2\x80\x98|\xe2\x80\x99|\xe2\x80\x9c|\xe2\x80\x9d/','',$title);
        // Preserve escaped octets.
        $title = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $title);
        // Remove percent signs that are not part of an octet.
