Smash case for manual reference IDs as well, consistent with references in data files