Fix for encoding invalid characters when running in xml mode
Fix for encoding invalid characters when running in xml mode

stevenh/qstat,stevenh/qstat,stevenh/qstat,illwieckz/qstat,stevenh/qstat,illwieckz/qstat,multiplay/qstat,illwieckz/qstat,illwieckz/qstat,multiplay/qstat,multiplay/qstat,multiplay/qstat,multiplay/qstat