#1730: Cleanup the file edit form we get from ajax.