Oh, when did you get your ear pierced, and is that the gay one?
Is that supposed to be a joke? If so, I'm not following your train of thought.
Yes. It's not a problem to joke about them. I don't care if they are offended.
Words can hurt. Some people are more sensitive than others. You should extend the same concern for other people's feelings as you wish them to extend towards you.