one more voice on not trying to outrun dogs. Stop your bike if you can before they get anywhere near you. Then stand tall BEHIND the bike and tell the dog bad dog, go home!
A big nasty looking dog challenged us on a very lonely country road. We stopped and told him to go home and he went!