messages: use sanitize helper method