add `pkg.xml.encode()` utility, and make `pkg.fs` more consistent w.r.t. accepting files or paths
Authored by: rob_d_clark 2007-11-22
Parent: [r2001]
Child: [r2003]