Temporarily set the console codepage to match the GUI codepage