Avoid double counting of newlines in MaxLengthValidator