Update Cookie.java

Initialized capacity of a StringBuffer to avoid the need for re-sizing.  The returned string should be of equal or lesser capacity than the original string.