Use hashlib module instead of the deprecated md5 module

Deprecated since version 2.5

Python3 does not contain the deprecated md5 module
Merge pull request #8 from vHanda/master

Use hashlib module instead of the deprecated md5 module
Use UTF-8 output instead of unicode to support CJK blogs.