Remove the misplaced res.end and force UTF-8