Strip \0 byte terminator from OnHeader value argument.