z3950_client: fix string handling for init diagnostics