test/pc_rpc: tougher test for string encoding