Revert "Set binary encoding on some I/O operations."

This reverts commit 0d9fd5ae91783b25999b322358e6c658ea01b473.