bad encoding doc