use safe printf("%s", str)