a simple squirt of water from your bottle works without hurting the dog. Pepper spray on a bike is a terrible idea due to wind.
Why the violence? The way you describe abusing an animal is psycho. Sounds like you need to ride more.