Is panhandling legal? Does it raise safety concerns?

Is panhandling legal? Does it raise safety concerns?