normalize the cookie key