A man who died has been named after his alleged killer was charged with murder.