Downcase category links in posts & category pages

The local web server seems to work with both uppercase and lowercase characters in category URLs, but on S3 it only works if they're lowercase. The links in the header of the category pages also need to have spaces removed.