Remove redundant namespace attribute, add encoding attribute