Update threadmodel.py

same ways as to slugify username.in case non latin names(namely Chinese name) come across error