Fix an infinite fast-forward newline on invalid UTF input.