Add helper method for joining endpoints using the appropriate separator.