Fix for spaces in urls

Fixes issue #94.