Monkeypatch watchdog encode/decode methods on Linux if the filesystemencoding is empty