if you want to put a buffer onto the line, couldn't you just write the delimiter char and then write the buffer in two separate writes (one of text and one of binary data)