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

This fixes issue #35.