Fixed crash if the IC isn't set up for some reason (bad X11 locale?)