use binary mode (fixes #3)