Only switch to the underlying raw output buffer when binary data is
needed to be written.