It's a tough issue. It's not helpful to blame the victim, but the fact remains that if you make yourself an attractive target, you increase the odds that you will find yourself targeted. Yes, a woman has every right to dress as she pleases, but to deny that there are consequences to the decision is just wishful thinking. It's done to get attention. Which is understandable. Unfortunately, when one attracts attention, one will sometimes attract unwanted attention. Can't have just the good without the bad.
But even beyond that, there are street smarts involved. Don't travel alone at night. Avoid dark areas where you can be snuck up on and cornered. Keeping pepper spray in your purse might not be a bad idea, either.
As an aside, Rape and sexual assault usually tend to be less about sexual attraction, and more about power. That's why the argument is flawed.