mnc: use a binary mode for socket interaction