Backport PR #31596 on branch 1.0.x (BUG: read_csv used in file like object RawIOBase is not recognize encoding option)
Backport PR #31596: BUG: read_csv used in file like object RawIOBase is not recognize encoding option