There is no standard way. Many implementations support "bivalent
streams" that can take both binary and character operations. In the
absence of bivalent streams, it's typical to use a binary stream (with
an element type of (unsigned-byte 8)) and convert characters and strings
to the appropriately encoded octet vector before writing them to the
stream.
Zach