fixes a json encoding error with gettext proxies