Make g_strings in perl.c not global so that hostname_g as a char* doesn't break it.x