A player can make a colored nickname by using the control characters 0x01, 0x03, and 0x04 in the sended nickname string:
Using this nickname, you can also colorize the rest of the message string:
This bug appeared with the addition of UTF-8 support to the engine in 2013. To fix this bug, I believe a check for control characters in userinfo should be added to the Info_SetValueForStarKey and Info_IsValid functions.