Made a few changes to handle Sesame imports. Sesame isn't quite as forgiving as 4store is when it comes to URIs containing spaces.