Replace `.split('\n')` with `.splitlines()`.

Unicode standard defines multiple ways to represent newlines, so
the old approach may not work in some cases.

INFO: http://en.wikipedia.org/wiki/Newline#Unicode