Check and set mime type when renaming
Merge pull request #1 from tombh/master

Check and set mime type when renaming