const QString&.  Also give this function a better name like SanitiseCharacters