https://gitlab.com/SondagesPro/coreAndTools/adaptEnterErrorSurveyText/blob/master/adaptEnterErrorSurveyText.php#L150
our solution:
replace '-' with '_'