Use category in downcase only for URL

Resolves #1739.
It preserves letter case of category, but return `category.downcase` for `url_placeholders`. Also added some proper tests. If there are needed updates for documentation, please let me know.