Not sure how far we want to take this, but you should make sure that `out_data_files[filenum].filename` is big enough to add a `.bin` extension (which by itself is a good idea).