Fair but it's still more voluntary than stupid attempts by the government to tell people how to dress.
The solution is to cultivate an educated, tolerant culture. This rule is a step in the opposite direction.
How we dress or adorn ourselves is a fundamental part of human freedom of expression and I think it needs to be taken way more seriously than it typically is in most societies.