cleaning up form data before unmarshalling