Better XML generation for GetCapabilities

Created an XMLBuilder class to regularize generation of XML for GetCapabilities documents and forced encoding to use UTF-8 rather than the platform default in order to match the advertised encoding.