A heartbreaking tribute has been paid to a “charming, funny and deeply kind young man” who died in a sudden and tragic incident on the railway line.