Encode local storage name to prevent XSS