making xml text more robust