Is it possible to revert setEncoding?