Fixed input size counting, by including a newline counter.
Consistent character counting in all browsers and disables typing if there are differences in counting. Related to #3