fix: UnicodeEncodeError when piping