Constrain invalid slugs in the routes.

This will prevent blowing up when given invalid UTF-8 etc.
Merge pull request #376 from alphagov/handle_invalid_utf8_slugs

Constrain invalid slugs in the routes.