fixed url encoding to support %20 instead of +