Fix for #1451

Line codec was using an undefined variable which caused it to throw an exception.

Fixed and added tests for line codecs

Closes #1451
`"Hello world"` will be transformed to `"2014-06-18T22:58:27.268+0000 host hello world"`