Add defaults for encoding/fileencoding

Fixes #20.