WIP: binmode guessing