convert: open all files in binary mode

Authored by durin42.