Open files with binary mode