bug #2820: URI encode instead of deleting blanks