afc::systemCharset(void) is used to get system encoding instead of using ::nl_langinfo() directly.