Index: common.inc
===================================================================
--- common.inc	(revision 726)
+++ common.inc	(working copy)
@@ -1722,7 +1722,7 @@
  * Wrapper around urlencode() which avoids Apache quirks.
  *
  * Should be used when placing arbitrary data in an URL. Note that Drupal paths
- * are urlencoded() when passed through url() and do not require urlencoding()
+ * are rawurlencoded() when passed through url() and do not require rawurlencodeing
  * of individual components.
  *
  * Notes:
@@ -1739,7 +1739,7 @@
   if (variable_get('clean_url', '0')) {
     return str_replace(array('%2F', '%26', '%23'),
                        array('/', '%2526', '%2523'),
-                       urlencode($text));
+                       rawurlencode($text));
   }
   else {
     return str_replace('%2F', '/', urlencode($text));
