Revert "LineEndingMode changed from enum to immutable class"

This reverts commit f67068379a050fee30b4b47c321f10ad7a316f49.