Prevent use of bad titles in thread names

Fairly simple regex, just replaces all legal chars, and then sees if there
is anything left.
Also removed that comment that was annoying me.

Bug: 59238
Change-Id: I305a434a32e4f0e3a576cae7cfc1ea54505e057b