Use Buffer.isBuffer for testing as per comments in #2