use binary mode when writing file.

When using jekyll on Windows, generated files have different EOL from UNIX system.
This small patch makes it same EOL.