remove null char when stringifying shares