function isBufferUtf8Representable(buffer) {
  const utfEncodedBuffer = buffer.toString('utf8');
  const reconstructedBuffer = Buffer.from(utfEncodedBuffer, 'utf8');

  return reconstructedBuffer.equals(buffer);
}
Determine if the given buffer is utf8.
@param {Buffer} buffer