Speed improvement by better escaping

* get rid of cls escaping
* improve attrEscape and xmlEscape