lib/url: fix no-scheme URL parsing