This is a simple MD2 hash function for JavaScript supports UTF-8 encoding.