Fix encoding detection on extractor worker

Now we are using libmagic (filemagic package)