rough std-in to bytes. Doesn't work on all inputs