Prevent rogue apostrophes from causing mayhem.

A message or display name containing a single-quote character would produce unpredictable results at best.  I'm sure there's probably some better escaping mechanism but here's a really trivial solution in the meantime.