Replace unsupported characters in text with ? before rendering