Sort out authentication hash str/bytes types.