Add input.
If an invalid character sequence is encountered and the strategy is ReplacementStrategy.THROW.