fix #1 and #2: regex fix for quotes, allow parse_ticket() to accept base64 string