Add as_node_reflow_text() to reflow XML text properly

The previous simple method did not work well for AppData files.