Fixed globalobjid so it doesn't contain \n characters!