Just give it time. Exposure and familiarity will do most of the work on that front.
As to your first encounter where you got insulted? In guy-speak, you insulted them first by not acknowledging with a "yo" or "howdy" (as I use down here). At least that is how they would have perceived it. Just try to pick up on what the expected response is to these encounters as they arise.
I think there's a lot of these low level behavior things that we have to learn how to work with as we transition (though I'm going the other way, the road's similar) Before, I just ooozed hostility and prickliness, enough that people would actually stop, clear their throats and grab my attention, "just didn't want to startle you.." before walking behind me in a store. (that *really* hurt btw..) Now people get seriously inside my personal space, strangers will ask me questions or offer advice or comments; really hard to get used to as I'm not at all used to saying anything to anyone or being acknowledge in any friendly way.... Someone actually bumped into me last week, and that NEVER happened before. And I'm not even presenting as female, just vaguely androgynous, muscular, but with a purse. (and a neutral purse at that).
I don't dislike these changes, btw, but it is very disorienting and confusing.