Handle port numbers in is_url