Fixed line endings and locale error