Extended save XML wrinting to group attributes and other non-protected strings
Fixed more issues with non-XML valid strings being written to the file