The homelessness has become a bad stigma to the beautiful city of San Francisco. I don't think there is any easy solution to this issue. Having lived there for 3 years, I, personally have seen strange sights around here. In this case however, I think you did the right thing.