getPageSource now uses the same code as the java Xpath code. Happens on the java side, not in node.
clean xml tags of invalid characters. Fixes #3305