Prevents an abort if a string decoder was set on the Socket or if the decoder is in objectMode.

    1. const Socket = require('net').Socket;
    2. const instance = new Socket();
    3. instance.setEncoding('utf8');