Make the file splitting output fully valid files