write-string and write-char work with streams