Tighten up slug validation to handle malformed UTF-8

Also DRY'd it up into ApplicationController
Validate slugs on browse pages
Merge pull request #254 from alphagov/validate_slugs

More validation of slugs