Fixed UnicodeEncodeError issue on Windows.