I'm generally more afraid of people than I am of dogs. I have a dog in my apartment, and if she died, I don't know what I would do.
Still, there are some sick fucking owners out there, and if their dog ever attacked me, I'd grab a nice rock and hit it. Obviously not too hard, but hard enough so it wouldn't fuck with me.
Whatever to guarantee your safety I guess.