added check for valid xml chars for general fields