glib: Fix some vasnprintf issues

This fixes some SIGABRT thrown by gstreamer-0.10