Add proper sanitization to team names/flags.
Add escaping of demo recording commands.