Get rid of ugly regex for line splitting.