mm_io_c: provide function for checking if BOM has been written
tests: add String#md5 method
mkvextract: don't write BOMs twice with --redirect-output