Reports of firms restricting women from wearing glasses at work have reignited dress code debates.