public static String readUtf8File(Path path) {
        try {
            return new String(Files.readAllBytes(path.toRealPath()), StandardCharsets.UTF_8);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
Reads a file into a UTF-8 encoded string.

@param path Path to the file to read.
@return Returns the contents of the file.
@throws RuntimeException if the file can't be read or encoded.
smithy-utils/src/main/java/software/amazon/smithy/utils/IoUtils.java