by default, new String() uses utf-8 encoding.  Just like what goes on inside ret.getBody().