Save the files in binary mode to avoid mutating newlines. Fixes #44

Consider this pull request which addresses issue #44 by saving files the same way they're opened.