synopsis: Avoid resource exhaustion in `cabal init`
packages: cabal-install
prs: #7283
issues: #5115

description: {

- Read file contents strictly to avoid resource exhaustion in `cabal init`.
- Ignore UTF-8 decoding errors.

}