Fixes #1928: Implemented filter serialization

Change-Id: Iad7b4b7e896781039e39ff8280ca38b2da601d65