PYTHON-752 - Fix escaping in SocketInfo.command.