Fix escaping of team names since we no longer user SQLite