This reverts commit b45b0845a6db32848ad08ac1037ef67a68ec2d39.
detected encoding if it is unambiguous.