Apparently there's something wrong with your tests in bash, as a bunch of online md5 hash calculators I tried, such as this and this, agree with mirc.