fix encoding problem on i18n javascript controller