Fix test

* Fix test (test_format  was broken)
  * Add `time` and `tag` to expected record
* Remove the trailing spaces
* Use `strict_encode64` instead of `encode64`
  * `encode64` add LF to every 60 encoded charactors.