Use string.concat in XmlResponse for getting encoding type