Whenever I see a suspicious looking dog, I just dial it up to 450 watts and leave him in my dust. Please note, if the dog is a greyhound or the rare greyhound-pit bull mix, I might crank up my wattage to 550. Anything higher might make me break a sweat.
Dogs usually avoid me during my rides. You aren't carrying around any bacon with you on your rides, are you? That could be your problem. I'd just avoid the problematic area if possible and leave the bacon at home.