sanitize messages