Added a function to replace all the ugly sprintf-ing everywhere
Also used it to get rid of padding-bug in GenerateSID()

Also patched m_spanningtree/uid.cpp to prevent delinking or worse when a user does not have any modes.