Added eol option to to_bin_string()