Added escaping to cookie value (would throw exception otherwise with special characters)