private static String stringify(final InputStream inputStream) {
		if (inputStream == null) {
			return "";
		}
		try {
			int ichar;
			ByteArrayOutputStream baos = new ByteArrayOutputStream();
			for (;;) {
				ichar = inputStream.read();
				if (ichar < 0) {
					break;
				}
				baos.write(ichar);
			}
			return baos.toString("UTF-8");
		} catch (UnsupportedEncodingException e) {
			throw new RuntimeException(e);
		} catch (IOException e) {
			throw new RuntimeException(e);
		} finally {
			try {
				inputStream.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}