HttpMessageComposer#decompose should automatically try to transform message content to String. Otherwise you get status HttpServletResponse.SC_BAD_GATEWAY.
User has to add custom message composer now, e.g.
I would check if current object is instance of expected output and if so I would transform the content to String. If user has registered a proper transformer it should work.