sc ide: fix auto-indenting closing brackets on certain locales

Fixes #578.