Fix category links with spaces at the end of posts