private static InputStream asStream(String string) {
        return new ByteArrayInputStream(string.getBytes(StandardCharsets.UTF_8));
    }
Returns a ByteArrayInputStream over the given string, UTF-8 encoded.
hosted-api/src/main/java/ai/vespa/hosted/api/MultiPartStreamer.java