Fix category and tag names in URL which are not URL encoded

URLs in href should be encoded.

When I use Japanese category/tag names, the output HTML is not good.