Remove CDATA and entity handling from readers and writers

Retaining CDATA sections and entities in temporary files has no benefit
and makes the code more complex.