Fix unsupported format character error