Remove control characters from UNIX Domain Socket

i have a problem with docker exec command output, when i try to run (with got)

 const output = await client.runCommand([
      "cat -v ./tmp/schema.json"
  ]); 

Where runCommand return a stream with docker socket of exec command

    return new Promise((resolve, reject) => {
      let chunks = [];

      stream.on("data", (chunk) => { 
        let output = chunk.toString();
        chunks.push(output);
      });

      stream.on("error", (err) => reject(err));
      stream.on("end", () => resolve(chunks.join("")));
    });

but when i parse with json parse the result of this promise i receive this control characters

screen

is possible to remove this control characters from the chunks?