log.BaseEncoder: use bytes.Buffer directly

Signed-off-by: Alejandro Mery <amery@geeks.cl>