Fixes a possible PatternSyntaxException in Ldap contact source.