always use binary file format

As soon as binary mode is the same as text mode in unixes, there is no need to detect OS/platform.

This also fixes output of non-ascii characters met in sources.
any reason you changed it from `w+` or `wb+` to just `wb`?