Emit encoding change event for file-less buffers