Fixed wrong field definition for filearchive. Fixed delete function to handle encodin...