[docs] [issue27387] Thread hangs on str.encode() when locale is not set