share/utf8/charset.c: Cleanup realloc() usage