Fix bug with encoding in file consolerefinedriver.cpp