Add codec for fs.saveViaTmp utility func