Fairness implications of encoding protected categorical attributes