Deal with unescaped newlines properly