[CSTP] Convert dir paths to URLs, fixes #1273.
[BitTorrent] Convert dir paths to URLs, fixes #1273.