use safeFilePutContents to write the flv metadata files in order to avoi...

use safeFilePutContents to write the flv metadata files in order to avoid reading partially written files