Fix tests not working because of spaces in checkout dir

When cloning the repository into a directory containing spaces some tests won't work as they use toURI().toURL() with generates %020 instead of spaces.