Allow a single-argument callback for File.open().

Fixes #235.