If it's feasible, I'd prefer the Javascript end to encode the title using encodeURIComponent(), which will handle all special characters, not just slashes.