Force utf-8 encoding in socketclient

Seems to fix problems with `fig run` for me.