Added attribute escape/unescape functions
Translated cdata/attr escape functions to NIFs