fix the incompatible character encodings: ASCII-8BIT and UTF-8 error when showing output