PION-1311: Moved xml_encode() method from Cloudmeter Core library into
Pion's algorithm lib.

Using xml_encode() in FileService and http_server to prevent XSS attacks