fixes crash when using file URLs https://github.com/CocoaPods/CocoaPods/issues/2683
added spaces in CHANGELOG and reversed conditional in name_for_url method
Merge pull request #2687 from Kurry/2683-crash-when-using-file-url

fixes crash when using file URLs.