In Smalltalk, literal characters are denoted by a $ prefix. Thus, to insert the character X into a stream, you send the following message:
$
X
outputStream nextPut: $X