Better title string sanitization, only enabled for gui