encode stdout messages before writing

On my system(OS X 10.9.1, python 2.7, no 'LANG' env var), problematic messages from child processes still raise UnicodeEncodeErrors despite the recent PR #54 from @jeethu.
This trivial, probably naive 'fix' solves the problem for me.