fix filterrule serialization to be consistent