Create StringBuilder with saner initial capacity when encoding a Cookie

Fixes #1951