Fix a wrong case handling on setting preference cookies.