Fix readline hook prompt

Python REPL cannot handle UTF-16 also on output (prompt) and prompt can
be encoded by any of sys.stdin.encoding, sys.stdout.encoding, so their
equality is checked. Defaults were changed so transcoding happens on all
streams.