changed encoding in main.cpp