attempt to fix $socket.get with non-ASCII characters