Use const& for hd_keys:set_encoded.