diff --git a/mod/chat/gui_header_js/index.php b/mod/chat/gui_header_js/index.php
index daad433734e..e9443e997d9 100644
--- a/mod/chat/gui_header_js/index.php
+++ b/mod/chat/gui_header_js/index.php
@@ -59,7 +59,7 @@
- shortname: $chat->name$groupname" ?>
+ shortname: ".format_string($chat->name,true)."$groupname" ?>