[core] fixed missing LC_CTYPE on startup