util method encod wai allow save properli xml file regain filter noic xml framework seen fit add todo do sure encod inform xml serial known task tfm understood think remov usag bob param str encod encod encod str buffer sb str sb buffer str length str sb append str substr sb append proc sb append str substr sb append integ sb append str substr cat debug encod str sb sb 