src/utils/arraybuffer.js
function enforceString(b, encoding) {
    if (is.string(b)) return b;
    if (isArrayBuffer(b)) b = toBuffer(b);

    return b.toString(encoding);
}
function enforceString(b, encoding) {
    if (is.string(b)) return b;
    if (isArrayBuffer(b)) b = toBuffer(b);

    return b.toString(encoding);
}
function enforceString ( b , encoding ) { if ( is . string ( b ) ) return b ; if ( isArrayBuffer ( b ) ) b = toBuffer ( b ) ; return b . toString ( encoding ) ; }
Force conversion to string with specific encoding
Force conversion to string with specific encoding