Fix/xml encode

Fixes a bug seen with a client who had RADIUS attributes such as "Business & Accounting" (i.e. with an unencoded XML reserved character ).