solve xml encoding problem