add ugettext and fix datadog encode