Fixed bug where party chat broke if the display name contained special characters

Fixes #1676