fix UnicodeDecodeError from shell output