Http\Cookie::__toString() should not throw exceptions

See #1413, #1428