(char_encode_as_entity_reference): Don't use `DECODE_CHAR' to detect