not all characters with HTML character entity equivalents are replaced