Using fmt here is overkill. Just use `writer.Write(scanner.Bytes())`.