Added encoding UTF8 for saving configurations, and some log messages