It's a problem that was "solved" long before that by just wearing a condom and protecting yourself against other diseases too, and even pregnancy. Condoms are cheap, widely available and decades of condom-related education has been given out to many different generation of kids and adults worldwide.
Somehow we still need day after pills, abortions, antibiotics and other STD meds, and vaccines, now (hopefully) for HIV too.
> Somehow we still need...
So, clearly condoms are not the complete answer. Any solution that does not acknowledge the reality of how people actually behave is going to be imperfect.
We live in a messy world.
If only Isaac Asimov had worn a condom, he might still be with us today.