Ensure the `name` of any error instances is `'InvalidCharacterError'`