Whoops, need to test for \r\n *before* converting lone \rs into \ns.
Don't pollute the global scope, dummy.