Better error message when schema-less URI given

Closes #229.