Chat area allows too long string
It is possible to enter more characters than what would be displayed on the chat aera (even though it splits long input on muliple lines).
Retricts the input length or make it prints everything (might be better to have a definied limit though).
This is tricky to fix perfectly, since the allowed string length depends on a number of parameters (player name, color codes, location option, etc.) in addition to the old, inflexible UI code, but the commited change should make the client side limit quite close to the server side limit.