Encodes xml with UTF-8