Fixed url encoding problems for tags with spaces