Allocating sizeof(name) when declaring names

This change fixes a segfault in openSUSE, which is not reproducible in
Fedora.
Collect arguments as utf8 strings
Removing g_type_init since it is being deprecated