Fixing some URI handling issues to make loading via librdf and isql identical.