Next time you have to stop just keep the bike between you and the dog. I've found that talking to the dog will usually calm it down. I start with a friendly tone (ex. hi puppy!) And if that doesn't work an authoritative NO! Usually works. Dogs are very perceptive of body language so be as tall as possible and confident. I dont carry dog spray.