support HTML entities being character set