Improvmeent for #81937: We no longer allow the sanitizing function to receive empty strings.