Sanitise endpoint URL to avoid possible disappointment