Thanks Geoffrey,
Obviously I don't want to run into one but living out here means that every now and then you do. Heck I've had them in my own yard. I've taken a few courses that our local Game and Fish put on to teach you what to do in an encounter with large predators like bears, wolves, mountain lions etc.
You just really have to be very aware of your surroundings. My main defense weapon is bear spray. It's different than a normal can of pepper spray in as that it's a more powerful chemical, shoots a larger and wider pattern, and holds a lot more. Some people feel carrying a gun is better but the Game and Fish say that the spray is a better option as most people aren't as good a shot as they think they are, and where you need to hit the animal is pretty specific. The spray you don't need to be as accurate just aim it low towards them and the fog it creates will take care of any inaccuracies. The spray will work on any animal with nostrils even a charging Moose.
If I'm hiking with the wife and looking to avoid any contact you just make lots of noise and try not to sneak up them. Don't get between a mom and her cubs or between them and their food. The reality is that they really don't want to run into you either. They don't really see you as a food source.