Read df output in binary mode

Fixes #30046.