added xml encoding header with etree