1. dos2unixify files
2. make lexer handle Windows carriage return
3. encode error message in UTF-8 format