fix build on linux

removing 1st slash was just a bad idea, converting URL to URI allows to
avoid such bad platform-specific behavior