change encoding of post using inotify