Allow custom serialization instead of localize