- fix encoding detection on files