Return proper string type from hexdigest in py2/3

fixes #148 + test case