Handle command line encoding