Encode XML Content

Hopefully this approach isn't too overzealous -- it is turning ":" and other allowable characters into htmlentities, but having an "&" in the data was causing the code to break.