Update m5-input.c

glib 2.0 dosen't have a function 'g_utf8_substring'

I copied it from somewhere I forgot (maybe gome's forum)