Tests and packaging for release
correctly handle encodings in the command line tool (across Py 2 and 3)