Add unit tests for the `encoding/1` Logtalk directive