Ensure relationship names are properly escaped.