Fixed problems with URL generation for tags with spaces