make sure md5_hex argument is string