Cookies need to use charAt instead of [] to parse strings.