Changed encoding for cursor when returning Riak error