Fixed urlencode problems for tags with spaces