Text this: On the maximal energy among orientations of a tree