url encode/decode ids.