charset.c: Use defined() for HAVE_ macro.