XUriParser: moved 'TryParseQuery()' into its own method