Decode stdout in shell.run_cmd

Closes #885
Merge pull request #888 from ZyX-I/run_cmd-unicode

Decode stdout in shell.run_cmd