prevent another StringIndexOutOfBoundsException in Graph.toAscii