Use binary mode with files