Avoid non-latin characters messing by recreating DOMDocument