adding encoding to config file