diff --git a/entityreference.module b/entityreference.module
index b9f91af6..738d173c 100644
--- a/entityreference.module
+++ b/entityreference.module
@@ -1097,7 +1097,7 @@ function entityreference_autocomplete_callback_get_matches($type, $field, $insta
     $tags_typed = drupal_explode_tags($string);
     $tag_last = drupal_strtolower(array_pop($tags_typed));
     if (!empty($tag_last)) {
-      $prefix = count($tags_typed) ? implode(', ', $tags_typed) . ', ' : '';
+      $prefix = count($tags_typed) ? drupal_implode_tags($tags_typed) . ', ' : '';
     }
   }
   else {
