This should be ``msg = msg.decode('UTF-8')``, right?