No one should allow their dog to approach anyone, dog owner, jogger, other dog, child, horse, whatever.. without being told it is ok.
If your dog approaches someone and you can't call it back, then potentially your dog is 'out of control in a public place' which is an offense.
If that person has 'reasonable grounds to fear injury', be that a bite or being scratched or knocked down, then your dog may well be considered 'dangerously out of control in a public place'.
To avoid this if your dog does not have really good recall off moving objects - use a harness and long line!
So no you AIBU.
However there are things you can do to mitigate disaster in public places where dogs might reasonably be found.
*Don't wear headphones or have music up so loud you can't hear what is going on around you.
*Do not run up behind a dog.
*Do not run up AT a dog.
*If a dog is chasing you, stop.
This way you stand a greater chance of hearing a dog/owner around - and you are less likely to startle a dog or cause one to feel threatened.
This ABSOLUTELY applies to dogs on leads - they are well aware they are trapped, and if you hurtle at one, or up behind one, even the nicest dog might be startled or feel threatened and bark or lunge or even snap.
So, give them space - call out that you are coming past, and arc around, give the dog as wide a berth as possible and ideally slow down a bit too.
Off lead dogs often find someone running to be exciting/arousing, some will chase in play, some want to run with you, some will bounce and snap and nip in play and some will be aggressive - don't risk guessing which it is going to be, stand still, fold your arms and don't stare at the dog. Wait for the owner to collect their dog and once the dog is on the lead THEN you can tell them they are an idiot if applicable.
And believe it or not, other dog owners don't like loose dogs running up and pestering them and their dogs either!