[lib][s]: make spec.url always has a trailing slash.