Improve multichar EOL detection in util.Buffer