fixed two bugs in stratsys-cli.py 

they caused an error putting out material encoding
using the -r keyword or the material list command