I look at encountering dogs anywhere w/ or w/o their owners, like a triangle. The dog is at the apex of the triangle. Because, No matter how much a dog is trained, and how hard a cyclist tries to avoid a dog. The dog still has independent thought, and instinct.
So, Whenever I encounter a dog. I slow down for the dog. To let the dog know that I mean it no harm or ill will.