Better to use ReplaceInvalidChars.