encode URI when post data
fix api factory bug
Merge branch 'master' of https://github.com/NStal/leafJs
fix multi encode