avoid monkeypatching the encaps_lookup() method

the windows definition of #encaps_lookup() was winning, either through
accident or through alphabetical sort order.

long term we may want better isolation between different files that
are defining a plugin.