Make use of pyqode.core.cache.Cache to retrieve file encodings.

if the file is not in cache, locale.getpreferredencoding() is used