message: Add toUtf8 helper in common-utils
  This addresses a common use case of Buffer where it was used to convert a utf8/base64 string to utf8. The helper skips the conversion when it's not needed.
diff: @@ -8,3 +8,19 @@ import { IsoBuffer } from "./indexNode";
  export const fromBase64ToUtf8 = (input: string): string => IsoBuffer.from(input, "base64").toString("utf-8");
  export const fromUtf8ToBase64 = (input: string): string => IsoBuffer.from(input, "utf8").toString("base64");
  +
  +/**
  + * Convenience function to convert unknown encoding to utf8 that avoids
  + * buffer copies/encode ops when no conversion is needed
  + * @param input - The source string to convert
  + * @param encoding - The source string's encoding
  + */
  +export const toUtf8 = (input: string, encoding: string): string => {
  + switch (encoding) {
  + case "utf8":
  + case "utf-8":
  + return input;
  + default:
  + return IsoBuffer.from(input, encoding).toString();
  + }
  +};
  