fixes issue with serializing to json

 when you have `ugettext_lazy` in your dict