Do not run, scream or talk. Just stand still and be quiet. Don't look directly at the dog, even if he comes up to sniff you. You can look at his tail or his foot, but don't look into his eyes. In dog language, that is a threat. Remember; quiet, still, no staring. Most likely the dog will lose interest once he looks you over. Then you can slowly move away.