--- template.php	2009-10-09 06:36:17.000000000 -0300
+++ template.php.new	2010-02-05 10:09:36.000000000 -0200
@@ -447,9 +447,7 @@
   // Replace with dashes anything that isn't A-Z, numbers, dashes, or underscores.
   $string = drupal_strtolower(preg_replace('/[^a-zA-Z0-9-]+/', '-', $string));
   // If the first character is not a-z, add 'id' in front.
-  if (!ctype_lower($string{0})) { // Don't use ctype_alpha since its locale aware.
-    $string = 'id' . $string;
-  }
+  $string = preg_replace('/^[^a-z]/', 'id\0', $string);
   return $string;
 }
