Set the tempfile creation to binary mode
in order to prevent incorrect file creation in the media buffer area.
Issues were detected in Windows.
- Use binary mode in media recovery.
- Support automatic media recovery if the file doesn't exist in the media buffer area
Merge pull request #2 from sindharta/media_recovery_binmode

Media recovery binmode