Store file contents as raw vectors

This is needed to avoid truncating binary files,
or any file with an embedded null.
Make sure output directory exists before writing output
Rmarkdown plugin now includes all files in the output