Fix for non-latin characters in urls, similar to pull request #1

The current implementation only escapes % characters in the item titles. This pull request deals with the case when there are %s in the item urls.