Allow specifying the encoding with --encoding, support fullwidth chars in python2.