fixing gettext errors due to malformed string