fixed encoding on textfiles