Returns the contents of the reader as a string. The mime type must be a text type, for example text/xml.