Librato cbuf encoder

The Lua idiom for nil tests are:
```lua
if not line then  -- instead of line == nil
--
end
```