Writing strings into a file in ASCII or Unicode?

My application send a file to a printer via the shell.
I duplicate the file by writing it in another file changing and adding some text.
With Jaguar the text added is oK. On Tiger it seems to be write in unicode (2bytes for each character).

How can I write ascii code only?

Standard Additions’ ‘write’ command writes Unicode text values to file as UTF16 unless you tell it to do otherwise, e.g. ‘write txt to f as string’, ‘write txt to f as «class utf8»’.

AppleScript 1.10 changes the way that ‘ & ’ concatenations are handled; before Tiger, the result was a string; now it’s Unicode text. It’s a long overdue bug-fix, but it will break existing code that’s dependent on the earlier behaviour - as you’ve discovered.