Have a can of HALT! pepper spray. Have it on a strap on my bike bag and it's easy to grab when a dog is charging. Used it just the other day on a blue healer that was making a bee line for my ankle and it stopped him in his tracks. The dogs remember you after the fact too!
__________________