saltstack/salt — pull request #3081 by s0undt3ch (2012-12-31 02:00:11+00:00)
Title: Fix Unicode encoding issue on log messages. Fixes #3074.

The way this was fixed was to convert all log messages to Unicode so that they can, later, be properly encoded for the console and the log file. Also, we convert any Unicode configuration values to the original UTF-8(since that's yaml default, or UTF-16). This latter fix was needed because if I set the `user` setting to a non ascii value in order to trigger this issue, we would trigger other issues, the `pwd` module does not like Unicode that much ;)