Fix specifying encoding in options

fixes #5