bgzf: Translate windows line endings

so that files produced on windows (\r\n) can be read on
UNIX systems (\n)