Convert categorical features to dummy features