For windows, make UTF-8 mode into a runtime choice.