Thanks everyone for your advice! I guess in retrospect I should have stopped and yelled at the dog instead or trying to outrun her. She didn't attack me (thank goodness) so maybe a loud "No" and some arm waving would have scared her away.