Fix breaking bug on url joining resulting in paths like `///path`.

Added OS-agnostic url join helper.
Merge pull request #699 from STRML/master

Urgent: Fix breaking bug on url joining resulting in paths like `///path`.