Prevent UnicodeEncodeError

Prevents UnicodeEncodeError: 'ascii' codec can't encode character, while printing shell commands output
Avoid UnicodeDecodeError exception when passing module args
Merge pull request #5178 from cavassin/devel

Prevents UnicodeEncodeError