Fix LMS-530: Reflected XSS in chapter and page numbers

The urls.py change is already pushed to production, but that doesn't mean we can't talk about better ways to do it.

@gwprice @jzoldak Thoughts?