Valid chat message characters

does not permit all possible characters (or 'bytes', to be precise) without potentially throwing an error or disconnecting the player.