Added stack trace to DOMExceptions
Added proper escaping