Test for and fix username case inconsistencies