private static char returnGoodXMLChar(char c) {
		// Not allowed in XML, but no information lost if we ditch them
		if ((c != '\u0009') && (c != '\n') && (c != '\r') && ((c < '\u0020') || (c > '\uD7FF')) && ((c < '\uE000') || (c > '\uFFFD'))) {
			return '\u0000';
		} else {
			return c;
		}
	}