Merge pull request #128 from BluWings/master

code cleanup
#129

added test case
#129

decode path
Merge pull request #130 from BluWings/129-url-encoding

129 url encoding