Fixed GStrings containing null bytes

If a GString contained a null character within the string, the previous code would terminate the string prematurely, as it ignores the len field.