url encoding for metadata rest service