When attempting to set http headers with invalid characters, Nodejs will throw a TypeError.
const http = require("http");
const server = http.createServer((req, res) => {
// Attempting to set a header with invalid characters
res.setHeader("CF-Region", "中文");