avienc: sanitize variable naming in write_header()