Avoid usage of System.lineSeparator() due to JDK 1.6 compatibility. Thanks to Matt Benson