[FIX] don't fail installation entirely if pyPdf isn't available

should print an error message though
[FIX] Properly redirect in case of invalid url slugs

Use werkzeug's api instead of doing hackish url replacement