Fix MaxLengthValidator to only count newlines once.

This request fixes #68.

The javascript counter counts newlines as one character but the value of the field in the python validation script shows newlines as '\r\n'. This request replaces '\r\n' with '\n' for the character count while leaving the original value unchanged. This makes sure that the two counts match.