adding writeTo(OutputStream) and ByteString.empty()