Convert tree diagrams into UTF-8

Also remove trailing whitespace