Fix UnicodeDecode error while rendering the portal message for GQueryError.