Case-sensitive and encoding fixes for distinguishSchoolType