fixed crash on non-valid cookie names