use stdout.encoding for decoding pretty bytes
use stdout.encoding for decoding pretty bytes

ensures correct decoding for objects that have
queried sys.stdout.encoding for computing repr bytes.
ipython/ipython,ipython/ipython