open files in binary mode