Fix encoding of '^' and 0x1E in scripts

We cannot encode ^ as ^^, as we already need that to encode 0x1E. Encode ^ as
^` instead (0x60), 0x40 to 0x5F encode 0x00 to 0x1F.