Make sure to use binary mode for all files

Should fix issue #7