Sanitize message strings used in dj.assert