Safer theme name replace