Read wav files in binary mode

Closes gh-4520