Count length with new lines correclty

String length should count new lines as 2 chars for textareas.
http://stackoverflow.com/a/462949/1185993