The gform_advancedpostcreation_update_post_data filter allows modifying the post data before updating it.