added a method 'urlencode' in parse path