rather than trying to parse the raw response as a file object, parse its content as a string