I used to ride with a friend that carried ammonia and water in a spray bottle. One shot in the snout and the dogs never chased us again. The next time one came running and recognized us, he stopped so fast he went head-over-heels and we rode up the road at our usual pace.