code: public static HttpEntity newStringEntity(String s) {
          try {
              return new StringEntity(s);
          } catch (UnsupportedEncodingException e) {
              throw new SdkClientException("Unable to create HTTP entity: " + e.getMessage(), e);
          }
      }
docs: Utility function for creating a new StringEntity and wrapping any errors
  as a SdkClientException.
  
  @param s The string contents of the returned HTTP entity.
  @return A new StringEntity with the specified contents.