ajax calls and uid encode/decode to string