I just switched my forum to unicode username.
I updated discourse-username-localization to remove all the ruby stuff. (can’t wait to see you guys fix hashtags and mentions in the core, so I can abandon it completely)
And use this whitelist:
[\p{Han}\p{Katakana}\p{Hiragana}\p{Hangul}]
And update letter_avatar service to v4.
Now it works