Encode unicode kwargs to avoid UnicodeEncodeError
Decode output to avoid UnicodeDecodeError
Merge pull request #15812 from terminalmage/issue13878-2014.1

Encode/Decode unicode characters in cmd.run states (2014.1 branch)