Fix handling of ftp urls
Merge pull request #1360 from AltGr/fix-ftp

Fix handling of ftp urls