message: fix(build): do not utf8-read/write images
diff: @@ -61,6 +61,7 @@ export async function generateDirFromTemplate(sourceDir: string, interpolations:
  await copyDirAndApplyTemplates(sourceFile, targetFile);
  } else {
  const sourceText = await fs.readFile(sourceFile, 'utf8');
  + if (!sourceText.includes('\ufffd')) { // This is valid UTF-8, i.e. a text file
  const interpolatedText = sourceText.replace(
  /\{\{(\w+)\}\}/g,
  (_match, identifier) => {
  @@ -70,6 +71,9 @@ export async function generateDirFromTemplate(sourceDir: string, interpolations:
  return interpolations[identifier];
  });
  await fs.writeFile(targetFile, interpolatedText);
  + } else {
  + await fs.copyFile(sourceFile, targetFile);
  + }
  }
  }
  }
  