Fixes content-type detection problems.