do shell script: sending ctrl-d

How does one send control characters in a do shell script command?

I want to send ctrl-d at the end of my command. How do you send this through do shell script?

Not sure about this, but would something like

do shell script "perl -e "print chr(4);""

work?