Added parameter for valid eol characters