Fix wrong use of iconv() that caused encoded_text pointer to be moved and corrupted (#5025)
msLayoutTextSymbol(): fix memory corruption in case of failed iconv() (#5025)