Be safe: My wife and I have been to SF twice. The first time a bar fight spilled out into the street while we were walking to church at 9am on Sunday morning. One of the guys pulled a knife, but someone talked him down before there was any blood spilled.
The second time my wife was about 20' away from a shooting near the convention center.
I am sure its a great city, but I haven't had the best experience there.