Use native Ruby implementations in Yast::URL and Yast::IP

@cwh42 I am creating a PR so that I can comment on the code early.
begin-rescue-end is not necessary, def-rescue-end is possible.