Fix encoding issue in log_printer.py.
Fix encoding issue in socketclient.py.