I think it is ironic sometimes to look at bite statistics- the most publicized attacks come from the breeds we all picture- Rott, Pit, GS, Doberman- because their attacks cause the most danger... but most insurance statisctics point to most bites coming from Golden Retreivers, Chows....
I like seeing dogs on trail, I saw one recently with a pack carrying mostly its own food and a water bowl- pretty cool. Most trail dogs I see either ignore me, or give me a glance and a wag. Some want a sniff as they pass and I just gently move my hiking stick to block their way. Recently had two off leash give me a good warning barking and defensive stance as a lady and her son came up trail. I just stepped off trail and kept stick tip down but between me and them until the folks got hold of their dogs. The lady apologized and I just remarked that the dogs were protecting her as natural but she might want a leash next time.
If I stop to chat with folks I often ask if I can pet the dog- always ask before reaching down! LOL! I grew up on farms, animals are not that difficult to understand but many owners forget the step of socialization- many owners are not well socialized either. It is important to recognize hunting or attack behavior though.
If strange dogs come into my yard, they get challenged, how they are treated depends on the response to my challenging approach. Some end up with me sitting down and petting them as reward for their good response. Some others run like hell, depending on their response. I was recently working under my car and hear someone calling "Bella..." hmmm not a name you hear alot. Then I felt something breath on the back of my head, I turend my head slowly and got licked on the cheek!

Some sort of terrier by the look of her. When the owner walked up to apologize, Bella and I were sitting on the drive and me scratching her ears. Bella is welcome in my yard anytime and the owner knows it.
Bill