fix for merging CDATAs producing an ending tag ]]> in the resulting CDATA