do not count the unknown length in the written count

Even though an unknown size is not recommended/working with multipart encoding