Exceptions with chars used by regular expression can break tests