AMBARI-24991. Commands timeout if stdout has non-unicode symbols. (aonishuk)