Ensure URL for builds and tests is properly encoded (#35)

This fixes issue #35. 
We already have urllib2 used here, why not use that?