Escape message (related: candy-chat/candy#f93cefb)
Fix inline-images in combination with colors-xhtml

Reduce mem overhead by moving regex out of the event handler