Make a lack of filename in the constructor an exception.

Issue #190