IIRC, 5th and 6th Sts. from Market S. to Mission are fairly seedy, even during the day. Actually, the walk on 5th from Howard S. to Brannan is much more tame. You can have a better experience walking to the hotel from N. of Market by walking Market to 4th, S. to Howard, and W. to the IC.