Fix charset in the titles of input devices

~ Fix the bug with non-english symbols in the titles of input devices
~ Add break to InputPanel's loop in item change event to make it faster