cli: supress printing "null" in non-export mode, output strings unescaped