Fix unknown characters in diagram