Be robust agains string keys

Closes https://github.com/CocoaPods/cocoapods-downloader/issues/25