Talk to your vet about giving your dog cranberry pills. I wouldn't "THINK" this should be a problem, but like I said talk to your vet first.
I know in humans if you take a cranberry pill everyday that it can prevent UTI infections. It's worked wonders for me.