Error if no encoder is set
Merge branch 'encoder-issue'
Fix newline for WINDOWS