code: public static void makeStringResponse(HttpResponse response, String s) {
          StringEntity entity = new StringEntity(s, ContentType.TEXT_PLAIN);
          entity.setContentEncoding("utf-8");
          response.setEntity(entity);
      }
docs: Sets a string as the response
  @param response The response object
  @param s The response body