Fixed a couple bugs with line length checking and ^M control characters.