Dogs, the foremost snobs in creation, are quick to notice the difference between a well-clad and a disreputable stranger.