Fix a URI parsing bug for local files
Refactor CLI exception handling
An extension only composed of numbers shouldn't be valid
Fixes GH issue #16
Fixes GH issue #15