Fix unicode in diagnostic functions