Handle more invalid characters.