Fixed encoding issue with DomDocument