Added 'getExtensionByMimeType' method to CFileHelper class, enh #3513

fixes #3513