fix command line encoding bug