Replace numeric keys with "node-#" for XML encoder