tm: beter detection of brackets in From/To values in UAC print functions

- commit fb0cd1cd6a891ab5dc5f559bb6740ba62ac3daf4 fixed the case of
  avoiding double <> when dispaly name was present, but affected when
  header parameters were given
- reported by Juha Heinanen