Set the default bits value to 8 if the input is a Buffer.