finish unicode encoding and decoding

tests/interact.py now now passes UnicodeDecodeError