Force names in legend into class character