Read wav files in binary mode

Closes #4520