I don't have much to add, but I vaguely recall a recommendation of slowing/coasting as it approaches and then accelerating at the last minute; though I'm fortunate to not have any recent run-ins with dogs.
My best dog story was from my days delivering newspapers as a teenager. It was winter and there was more than a foot of snow on the ground when a German Shepherd came charging at me as I made my way to the door. I was far enough into the snow there was no way I could outrun him, so I figured maybe I could intimidate him instead and I trudged towards him, looking angry. It almost worked, he sat down and tried to stop, but there was a slope, so he slid. He slammed into my legs and I fell on him. With a full bag of newspapers I was easily 200+ lbs. He yelped and retreated. I couldn't help but laugh.