test auto-detecting buffer as binary