Fix applying line endings (fix #201)