Fixed the /categories/ page not working with categories with spaces in the name