fix xml encode issue