Avoid some `&str` to `String` conversions This patch removes some `&str` to `String` conversions.
sha1
sha2
md5