Add helper to get hostname form an URL