toBuffer null-terminate option