(expand): Use binary I/O where appropriate.