remove illegal characters from cache option theme name

These characters cannot be used since they cause javascript issues