glib2: (maybe) fix a bug that wrong converter is used on bigendian environment

GitHub: #270

Reported by mtasaka. Thanks!!!