It doesn't have to be intentional sexist evilness for it to be a women-deterrent. You want to solve this gender-inequality problem, you've got to see the bigger picture and get rid of situations that drive women away. If a light-hearted well-intentioned but stupid joke drives women away, you gotta lose the joke.