EdfWriter now write edfHeader es simple array of chars. No need to use Charset.forName("US-ASCII");