Fix chat html injection
Sending invalid JSON does not crash the server.