But you're presupposing a problem. It's possible that women don't enter CS due to personal preference. Not because CS is hostile to women but because the subject matter isn't interesting to them.
I heard somewhere that there are just as many women in undergrad math as men, but the ratio dramatically decreases in graduate math because so many women leave... to teach.