More validation of slugs

Validate slugs on browse pages, and handle malformed UTF-8 as well.