chart: Fix format string issues in chart_write_title callers.