Fix "unsupported format character 'n'" error.