I think there is a law in Canada against mis-gendering people. Lot of popular tech companies have explicit CoC guideline against mis-gendering. StackOverflow recently fired a moderator for proposing to use gender neutral pro-nouns instead of individual preferred pronouns, even when there is no official CoC defined as such.