To find it creepy for a male teacher to enforce a "modesty" dress code on female students acknowledges that such a code inherently sexualizes the situation. The same goal could be reached by emphasizing that school is to be a somewhat more formal, business-like environment. Plenty of workplaces maintain standards of dress without heavy sexual overtones.