Ensure that SDP read from TCP socket is null-terminated.