fix call to gzdopen to not use the 'wb' mode string for reading