1. dos2unixify files
2. encode error message in UTF-8 format