While you chasing and screaming like a lunatic, I rise my hand above my head, and most dogs back off, if not I just speak to them with a calm low voice, it is not what you saying or language, it is how you say it. When walking my dogs and we meet a pack of dogs, I have my dogs dogs sit down, and I have a stick I rise in to the air, never failed once. Being chased on a motorbike, I stop if I can not speed safely away, and talk to them.
If you to scared the best solution is to carry some treats if this is your daily route. Doesn't take more than two times and they are your best friends.