bootimage: Fix extraneous null byte(s) in strings when returning cmdline or board name