Improved vlc_UrlParse (close #1025)