Line endings correction