change Main.cpp to use UTF-8 encoding