bandb: do not blindly pass a buffer to a function that takes a format string (closes #27)