Fix html rendering of messages sent to web clients