- name = name.replace(/[\/\\:*"?<>|;,]+/g, '_'); // gears beta doesn't allow certain chars in the store name
+ if ( host.match(/[^a-z0-9._-]/i) )
+ host = encodeURIComponent(host);
+
+ name = window.location.protocol + host;
+ name = name.replace(/[^a-z0-9._-]+/gi, '_');