[Encoder] added DOT to list of special characters
[Encoder] fixed line width (misinterpretation of the spec)

Previously, the specified line width was used to calculate the amount of data to be encoded per line, not the length of the actual line.
[test] added round trip encode testing