Fix URI exception, closes #5