Two charged in death of homeless man