Encode sys.argv before using, fixes #10
Update copyright and whitespace