multibyte functions should be used to truncate strings
To avoid the same kind of problems as fd-plugins#5799 (closed) there are a few places mb_substr and mb_strlen should be used instead of substr and strlen
To avoid the same kind of problems as fd-plugins#5799 (closed) there are a few places mb_substr and mb_strlen should be used instead of substr and strlen