[rts] Improve _VALID_URL