Tapeworm larvae found in man's brain - how did they get there?

Tapeworm larvae found in man's brain - how did they get there?