JavaScript cookie manager with unicode support