Update the SWI-Prolog and YAP adapter files to skip any `encoding/1` directive in a Prolog module file when looking for the `module/2` directive