package com.groupon.seleniumgridextras.utilities;

import java.io.IOException;
import java.io.InputStream;

/**
 * Created with IntelliJ IDEA. User: dima Date: 7/8/14 Time: 3:49 PM To change this template use
 * File | Settings | File Templates.
 */
public class StreamUtility {

  public static String inputStreamToString(InputStream is) throws IOException {
    StringBuilder result = new StringBuilder();
    int in;
    while ((in = is.read()) != -1) {
      result.append((char) in);
    }
    is.close();
    return result.toString();
  }

}

@@ -44,16 +44,55 @@
 ities;%0A%0A
+import org.apache.commons.io.IOUtils;%0A%0A
 import j
@@ -144,438 +144,157 @@
 m;%0A%0A
-/**%0A * Created with IntelliJ IDEA. User: dima Date: 7/8/14 Time: 3:49 PM To change this template use%0A * File %7C Settings %7C File Templates.%0A */%0Apublic class StreamUtility %7B%0A%0A  public static String inputStreamToString(InputStream is) throws IOException %7B%0A    StringBuilder result = new StringBuilder();%0A    int in;%0A    while ((in = is.read()) != -1) %7B%0A      result.append((char) in);%0A    %7D%0A    is.close();%0A    return result.toString(
+public class StreamUtility %7B%0A%0A  public static String inputStreamToString(InputStream is) throws IOException %7B%0A    return IOUtils.toString(is, %22UTF-8%22
 );%0A 

Use apache utility instead of the home baged thing