Updated from_string to account for non-ASCII XML-content.