make to_s on Rpc work when frozen