Add escaping '<' and '>' in toString()

Add escaping of '<' and '>' in toString, because otherwise it doesn't return valid xml (which I actually need).