Var value xml encoding

If string looks like "]]<\something>" and we add it into CDATA we got empty CDATA and unexpected end tag :(