WriteCanonical1
Implements ISO's write_canonical/1: formats the argument in canonical form (quoted, ignoring operator notation, i.e. TermFormatter.canonical) and writes it to the current output stream (see IOPrimitiveUtils.currentOutputChannel).
Fails, rather than erroring, if the channel is closed.