Conditionally allow skipping of invalid input characters