ignore unicode errors in stdout
corrected indentation
Merge pull request #2956 from akerl/unicodefix

ignore unicode errors in stdout