StringBuilder.appendLine puts CRLF before the line, not after. Why would you make this decision? This is contrary to every other package out there.