[tapely] Improve _VALID_URL