msLayoutTextSymbol(): fix memory corruption in case of failed iconv() (#5025)