Update generic.py

sanitize title to avoid error in parse (example when title contain /)
Merge pull request #298 from GaetanCambier/patch-6

Update generic.py