Redetect mime type whenever extension is renamed

Fix for #6087 

Whenever a file extension is changed, the mime type is now re-detected (using the file extension) and propagated to the file list UI.

Please review @icewind1991 @DeepDiver1975 @karlitschek @schiesbn