Remove unused encoding detection code.