Encode stdout and stderr as UTF-8