Write in binary file mode

To avoid getting an `Encoding::UndefinedConversionError`, we change `FileStore#store!` to write in binary mode.