Fix SAXParseException on REST.get call

Trimming the response so it will be parsable even though is starts with leading whitespaces.