guess extension from mime type
Merge pull request #1918 from kived/loader-url-fix

Loader: guess extension from mime type