server.py:  Fixed a bug where client log messages would result in server encoding exceptions.