Fix a critical issue with storing strings in localStorage and sessionStorage as of 0.1.1