clean control chars from legacy xml