Convert data strings to buffers (ensuring correct content-length)