Improve CookieUtil.js: check unreadable cookie name and optimize