implement sig4 string_to_sign()