Fix #344.  Don't assume newlines are a single character (stupid
Windows).