generic possibility to marshal contents to files (native format)