check instanceof Buffer for binary data