use url_join to cope with missing /
Merge pull request #226 from andymckay/fix-misconfigured-urls

use url_join to cope with missing /