Fix #584 Solve the Unicode error in configtool

Error appeared when using a language that uses Unicode characters.