Fixed urlencoding problems for tags with spaces