Add option to specify encoding of monitored file. Defaults to UTF-8 on all platforms.