Fixed a bug where edited words are not encoded.