fixed two bugs in stratsys-cli.py that caused error putting out material encoding