Proper handling for URL encoding of ticket