I’m a woman also working in a male dominated field, but luckily for me no one really has attempted to hug me. I usually ensure I have pretty good sized personal space bubble and extend my hand through there to ensure I get a handshake. Though I often get the limp wrist, dead fish handshake.