Fixed function to decode category url to category name.