This should probably be `buf.toString('binary');`