fix(client): also encode keys which could be int