public static String writeToString(Blob blob) throws IOException {
    return new String(writeToByteArray(blob), StandardCharsets.UTF_8);
  }
Writes the BLOB to a string with UTF-8 decoding.

@param blob the BLOB to write
@return the BLOB contents as a string
@throws IOException if writing out the BLOB contents fails
jib-core/src/main/java/com/google/cloud/tools/jib/blob/Blobs.java