diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 94f51a9ff5..9467531d9f 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -26,7 +26,7 @@ function group_select($selname,$selclass,$preselected = false,$size = 4) {
$selected = " selected=\"selected\" ";
else
$selected = '';
- $trimmed = substr($rr['name'],0,12);
+ $trimmed = mb_substr($rr['name'],0,12);
$o .= "\r\n";
}
@@ -89,7 +89,7 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p
else
$selected = '';
- $trimmed = substr($rr['name'],0,22);
+ $trimmed = mb_substr($rr['name'],0,22);
$o .= "\r\n";
}