Convert nd refs to string for joining.