Switching node newline fix to now fail validation instead of silently stripping the newline. Added unit tests.