Fix io_string_write

Go with the terminated zero version.