character data writer fix

The character data is neither a simple text object or an element.
These object needs a special node writer so by default we will write
them as text. Make sure to overload this node writer to be able to
write its data.