Changes to unify access to data files.
Unicode problems writing to files solved.