I am trying to write a .cmd file to take a text file and add a string to the beginning of each line, replace all the semicolons with a ASCII control code 30 (RS), and end each line with a RS followed by a ASCII code 31 (US). When I put the RS and US in the file, notebook won't save it unless it is in Unicode, but when I try to run it in Unicode, it won't run.

Here is what I have that is not working:

```
@echo on > Convert.txt & setLocal enableDELAYedexpansion

set old=;
set new=▲
set bgnstr=@TESTSTATS▲▲▲
set endstr=▲▼

for /f "tokens=* delims= " %%a in (test1.txt) do (
set str=%%a
set str=%BGNSTR%!str:%old%=%new%!%endstr%
>> Convert.txt echo !str!
)

```

If I substitute any other characters for the RS/US, it does what I want it to do.