Charges against a man being prosecuted over a fatal attack on a railway worker have been amended to murder and affray.