fixes #6436 Users with special chars not displaying properly

Fixed the issue and pushed the code for review, please check it.