core: check that data is not NULL in function string_iconv_fprintf