URLencode the target URL properly
Merge pull request #1 from mathiasbynens/patch-1

URLencode the target URL properly