Decode bytes to a string with charset detection and fallback.
The raw bytes to decode.
The charset hint from Content-Type (null = utf-8).
The request URL (for error messages).
The decoded string.
If decoding fails even with lenient fallback.
Decode bytes to a string with charset detection and fallback.