diff --git a/core/modules/user/user.pages.inc b/core/modules/user/user.pages.inc
index 87408f10fec3f503cb98c36c9e38ecd1d0ff1b5b..1820f3aa7e1f3a08cde51bcb0c12c1242ea30497 100644
--- a/core/modules/user/user.pages.inc
+++ b/core/modules/user/user.pages.inc
@@ -34,7 +34,7 @@ function user_autocomplete() {
       $anonymous_name = config('user.settings')->get('anonymous');
       // Allow autocompletion for the anonymous user.
       if (stripos($anonymous_name, $string) !== FALSE) {
-        $matches[$anonymous_name] = check_plain($anonymous_name);
+        $matches[$anonymous_name] = $anonymous_name;
       }
     }
     $result = db_select('users')->fields('users', array('name'))->condition('name', db_like($string) . '%', 'LIKE')->range(0, 10)->execute();