The bigger threat is the dog causing a crash. If I'm not %100 certain I can easily and safely out run 'em, I always stop. Shouting them back usually works, using the bike as a shield or weapon would be the next step.
Dogs love to chase. If you stop, the chase is off.