use URI.join
Merge pull request #2 from zmughal/master

use URI.join