I always just stop and tell them to go back home again. 99% of dogs just want to chase stuff. You stop, they back off. I haven't met the 1% remaining, though I'm sure they exist. For them there's putting the bike between them and me.
__________________
Work: the 8 hours that separates bike rides.