save the config file with an explicit utf8 encoding