Fix potential debug printing crash if group name is NULL
actually by simplifying some prints to use the ustring directly,
which is also less verbose.