Changes to handle non-unicode data files.
Modified config with encodings.