If they present as female (like Kiku), I think that would be enough for Sanji to consider them women and not attack them. Then again, I get the impression that Oda doesn’t have the firmest grasp on gender fluidity, so I can’t say for sure that the cook wouldn’t treat them like men if they still have their dicks.